using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace  RFCard
{
    public enum CardType
    {
        /// <summary>
        /// IC 卡
        /// </summary>
        IC,

        /// <summary>
        /// ID卡（中距）
        /// </summary>
        IDMiddle,

        /// <summary>
        /// ID卡（近距）
        /// </summary>
        IDNear,

        /// <summary>
        /// 电子标签设备
        /// </summary>
        RFID,

        /// <summary>
        /// 身份证识别设备(华视)
        /// </summary>
        PersonID_HuaShi,

        /// <summary>
        /// 身份证识别设备(金诚信)
        /// </summary>
        PersonID_JCX

    }

    public class CardTypeNameHelper
    {
        /// <summary>
        /// 获取射频卡名称
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        public static string GetCardTypeName(CardType type)
        {
            string name = string.Empty;
            switch(type)
            {
                case CardType.IC:
                    name = "IC卡";
                    break;
                case CardType.IDMiddle:
                    name = "ID卡中距";
                    break;
                case CardType.IDNear:
                    name = "ID卡近距";
                    break;
                case CardType.RFID:
                    name = "电子标签";
                    break;
                case CardType.PersonID_HuaShi:
                    name = "华视身份证识别";
                    break;
                case CardType.PersonID_JCX:
                    name = "金诚信身份证识别";
                    break;
                default:
                    name = "未知";
                    break;
            }

            return name;
        }
    }



}


